package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/12
*/
@Data
@ApiModel("采购，退换货订单表，在退换货中，exchange date 就是创建时间")
@Table(name = "tbl_purchase_order")
@NoArgsConstructor
@AllArgsConstructor
public class TblPurchaseOrder extends BaseEntity {
    @Column(name = "group_id")
    private String groupId;

    /**
     * Purchase:采购单;Exchange:退换货单
     */
    @ApiModelProperty("Purchase:采购单;Exchange:退换货单")
    private String type;

    private String code;

    @Column(name = "delivery_date")
    private Long deliveryDate;

    @Column(name = "supplier_id")
    private String supplierId;

    @Column(name = "supplier_email")
    private String supplierEmail;

    @Column(name = "message_to_supplier")
    private String messageToSupplier;

    private String remarks;

    @Column(name = "total_amount")
    private BigDecimal totalAmount;

    @Column(name = "tax_percent")
    private BigDecimal taxPercent;

    @Column(name = "total_amount_include_tax")
    private BigDecimal totalAmountIncludeTax;

    /**
     * 1:pending(2.0废弃);2:received;-2:draft(草稿)
     */
    @ApiModelProperty("1:pending(2.0废弃);2:received;-2:draft(草稿)")
    private Integer status;

    /**
     * 保留
     */
    @Column(name = "invoice_no")
    @ApiModelProperty("保留")
    private String invoiceNo;

    private BigDecimal discount;

    /**
     * 保留
     */
    @Column(name = "purchase_requisition_code")
    @ApiModelProperty("保留")
    private String purchaseRequisitionCode;
}